KEYS: Limit ABI change in 4.9.59
authorBen Hutchings <ben@decadent.org.uk>
Sun, 29 Oct 2017 10:30:46 +0000 (10:30 +0000)
committerYves-Alexis Perez <corsac@debian.org>
Fri, 9 Feb 2018 12:58:52 +0000 (12:58 +0000)
commitcd17ee8ed017272b573c11a79e18270d8f5cc360
tree6c93a1f2ed216b87074b7710258af2eb883d62fd
parent39ca92576c5bf387a50b6f6de484e16f9caa8417
KEYS: Limit ABI change in 4.9.59

Commit 363b02dab09b ("KEYS: Fix race between updating and finding a
negative key") rearranged various state members in struct key, resulting
in an ABI change for all keys APIs.

Only the keys subsystem and key type implementation use this state
information, so we can limit the ABI break to them:

- Renumber the other flags back to their old values
- Hide the deletion of the reject_error field from genksyms (it was only
  used inside the keys subsystem)
- Move the new state field to the end of the structure and hide it from
  genksyms
- Rename the register_key_type() function, so newly built key type
  modules will only load on top of the new keys subsystem while old
  key type modules will only load on top of the old keys subsystem

Gbp-Pq: Topic debian
Gbp-Pq: Name keys-limit-abi-change-in-4.9.59.patch
include/linux/key-type.h
include/linux/key.h